//
//  BRJinghuaViewController.m
//  budejie
//
//  Created by LinBrong on 16/8/28.
//  Copyright © 2016年 Dason. All rights reserved.
//

#import "BRJinghuaViewController.h"
#import "BRCrossingViewController.h"
#import "commentViewController.h"
@interface BRJinghuaViewController ()

/*  <#    #>  */
@property (strong, nonatomic) BRCrossingViewController *jinhuaVc;


@end

@implementation BRJinghuaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    BRCrossingViewController *jinhuaVc =[[BRCrossingViewController alloc] init];
    
    [self.view addSubview: jinhuaVc.view];
    self.jinhuaVc = jinhuaVc;
    
    
    
//    // Do any additional setup after loading the view.
//    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 200, self.view.bounds.size.width, 50)];
//    label.text = @"此页面正在努力开发中...";
//    label.textColor = [UIColor colorWithRed:arc4random_uniform(256)/255.0 green:arc4random_uniform(256)/255.0 blue:arc4random_uniform(256)/255.0 alpha:1.0];
//    label.font = [UIFont systemFontOfSize:30];
//    label.textAlignment = NSTextAlignmentCenter;
//    [self.view addSubview:label];
//    

    [self creatRightBarButtonItem];
}


- (void)creatRightBarButtonItem {
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"MainTagSubIconClick"] style:UIBarButtonItemStylePlain target:self action:@selector(pushCrossingVc)];
    
    //    UIView *view = [[UIView alloc]initWithFrame:self.view.bounds];
    //    view.backgroundColor = [UIColor colorWithRed:arc4random_uniform(256)/255.0 green:arc4random_uniform(256)/255.0 blue:arc4random_uniform(256)/255.0 alpha:1.0];
    

    
    
}

//跳转到穿越
- (void)pushCrossingVc {
    
    BRCrossingViewController *crossingVc =[[BRCrossingViewController alloc] init];
    
    [self.navigationController pushViewController:crossingVc animated:YES];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
